package BehaviorDesignPattern.MementoPattern;


// Caretaker
public class Caretaker {
    private Originator.Memento memento;

    public void saveMemento(Originator.Memento memento) {
        this.memento = memento;
    }

    public Originator.Memento retrieveMemento() {
        return memento;
    }
}